package com.meilai.project.vo.finance.invoice;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.entity.finance.invoice.InvoiceApply;
import com.meilai.project.entity.finance.invoice.InvoiceApplyAttachment;
import com.meilai.project.vo.business.sale.BillSaleVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.List;

@Data
public class InvoiceApplyVO extends InvoiceApply {

    @ApiModelProperty("分组名称")
    private String group_name;

    @ApiModelProperty("发票类型名称")
    private String invoice_type_name;

    @ApiModelProperty("发票类型名称")
    private String invoice_category_name;

    @ApiModelProperty("申请人名称")
    private String flow_applyer_name;

    @ApiModelProperty("合同编号")
    private String contract_num;

    @ApiModelProperty("合同开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate contract_begin_date;

    @ApiModelProperty("合同结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate contract_end_date;

    @ApiModelProperty("项目名称")
    private String project_name;

    @ApiModelProperty("是否可以审核")
    private boolean can_check = false;

    @ApiModelProperty("组关联的销售单数据")
    private List<BillSaleVO> saleVOList;


    @ApiModelProperty("附件信息")
    private List<InvoiceApplyAttachment> applyAttachments;
}
